


<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>舟大师</title>
    <link href="/Content/bootstrap.css" rel="stylesheet" />
    <link href="/Content/newlogin/css/base.css" rel="stylesheet" />
    
    <link href="/Content/newlogin/css/IElogin8.css" rel="stylesheet" />
    <link href="/Content/newstyle/common.css" rel="stylesheet" />
    <link href="/Content/newstyle/style.css" rel="stylesheet" />
    <link href="/Content/newstyle/font-awesome.min.css" rel="stylesheet" />
    <script src="/Scripts/jquery-1.8.3.min.js?ver=1.1.0096 "></script>
    <script src="/Scripts/Email/emailAutoComplete.js"></script>
    <script src="/Scripts/CommonJs/jquery.Sonline.js"></script>
    <link href="/Scripts/Email/lanrenzhijia.css" rel="stylesheet" />
    <script src="/Scripts/CommonJs/Common.js?ver=1.1.0096" type="text/javascript"></script>


    <link href="/Content/newlogin/naranja.min.css?ver=1.1.0096" rel="stylesheet" />
    <script src="/Content/newlogin/naranja.js?ver=1.1.0096"></script>
    <script type="text/javascript">


        var dingshi;

        function Login() {
            var dat = new Date()
            $.post('/Login/QrLogin1', { text: $("#text").html(), VersionName: $("#hidVersionName").val(), s: dat }, function (r) {
                if (r.State == 2) {
                    clearInterval(dingshi);
                    if (r.URL == "" || r.URL == undefined) {
                        alert("登录出错请使用帐号密码登录");
                    } else {

                        location.href = r.URL;

                    }
                }
                if (r.State == 1) {
                    $(".qrcode-mod").hide();
                    $(".qrcode-msg").show();

                }

            });

        }

        function getid() {
            $.get('/Login/GetId?key=ZDS', function (r) {
                if (r.length > 0) {
                    console.log(r);
                    console.log(r.split('|')[1]);
                    $("#text").html(r.split('|')[1]);
                    var src = "/Login/QrCode/?Text=" + r + "&Size=201";
                    console.log(src);
                    var img = '  <img alt="二维码加载中……"  src="' + src + '" />';
                    console.log(img);
                    $("#imgbox").html(img);
                    dingshi = setInterval("Login()", 1000);
                }

            });
        }
        $(function () {
        
                                            //临时代码过期可删除
            if ('False'=='True') {
                narn('log', '系统升级维护公告', '<div style="color:black;font-size:16px;">尊敬的合作伙伴:<br> &nbsp;&nbsp; 系统进行维护升级【2019-11-22 22:00—2019-11-24 20:00】，维护期间产品可能会出现无法登录、卡顿、报错等现象，建议升级完成再使用。</div>');
                $(".naranja-text-and-title>.naranja-title").css("width","100%").css("text-align","center");
            }
            //临时代码过期可删除

            $("#Static2Quick").on("click", function () {
                getid();
                $(this).hide();
                $("#Quick2Static").show();
                $(".login-tip").hide();
                $(".mainBodyRight").hide();
                //$(".quick-form").show();
                $(".mainBodyRightTwo").show();
                $("#Static2Quick").hide();
            });

            $("#Quick2Static").on("click", function () {
                clearInterval(dingshi);
                $(this).hide();
                $("#Quick2Static").hide();
                $("#Static2Quick").show();
                //$(".login-tip").show();
                //$(".static-form").show();
                //$(".quick-form").hide();
                $(".mainBodyRight").show();
                $(".mainBodyRightTwo").hide();

            });

            //登录密码错误次数
            var loginErrorCount = 1;
            $("#btnLogin").click(function () {
                $("#btnLogin").attr("disabled", "true");
                $("#btnLogin").val("登录中...");
                //$("#sp_SubmitMsg").css("color", "#999");
                //$("#sp_SubmitMsg").text("");
                var name = $('#userName').val();
                var pwd = $('#userPwd').val();
                var validate = $("#uecode").val();
                var LoginType = "";
                if ($("#userName").val().indexOf("@") > -1) {
                    LoginType = "Email";
                    if (!$("#userName").val().match(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)) {
                        //$("#vuserName").css("color", "#f00");
                        $("#vuserName").text("您填写的邮箱格式有误，例如：mail@126.com");
                        $('#ueEmailPhone_img').css("display", "none");
                        $("#btnLogin").removeAttr("disabled");
                        $("#btnLogin").val("登录");
                        return;
                    }
                }
                else if ($("#userName").val().match(/^((1)+\d{10})$/)) { LoginType = "Phone"; }
                else { LoginType = "User"; }
                if (loginErrorCount > 3) {
                    $.post('/Login/CheckValidateCode', { ValidateCode: validate }, function (r) {
                        if (r.IsExist == false) {
                            $("#code_msg").text("验证输入错误");
                            $("#btnLogin").removeAttr("disabled");
                            $("#btnLogin").val("登录");
                        }
                        else {
                            //判断密码是否正确
                            $.post('/Login/NewCheckUser', { LoginType: LoginType, userName: name, password: pwd, VersionName: $("#hidVersionName").val() }, function (r) {
                                if (r.IsCheck == true) {

                                    location.href = r.Msg;

                                }
                                else if (r.IsCheck == "null") {

                                    $('#vuserPwd').text(r.Msg);
                                    //$('#vuserPwd').text("密码错误，请重新输入");
                                    loginErrorCount++;
                                    if (loginErrorCount > 3) {
                                        $("#ueEmailValidataCode_div").css("display", "block");
                                        $("#codeImg").attr("src", "/SystemLogin/GetValidateCode?times=" + new Date());
                                        $("#uecode").val("");

                                    }
                                    $("#btnLogin").removeAttr("disabled");
                                    $("#btnLogin").val("登录");
                                }
                                else {
                                    $('#vuserPwd').text(r.Msg);
                                    //$('#vuserPwd').text("密码错误，请重新输入");
                                    loginErrorCount++;
                                    if (loginErrorCount > 3) {
                                        $("#ueEmailValidataCode_div").css("display", "block");
                                    }
                                    $("#btnLogin").removeAttr("disabled");
                                    $("#btnLogin").val("登录");
                                }
                            })
                        }
                    });
                }
                else {
                    //判断密码是否正确
                    $.post('/Login/NewCheckUser', { LoginType: LoginType, userName: name, password: pwd, VersionName: $("#hidVersionName").val() }, function (r) {
                        if (r.IsCheck == true) {
                            location.href = r.Msg;

                        } else {

                            $("#btnLogin").removeAttr("disabled");
                            $("#btnLogin").val("登录");
                            if (r.Msg.indexOf("密码") >= 0) {
                                //$("#vuserPwd").css("color", "red");
                                $("#vuserPwd").text(r.Msg);
                            }
                            else {
                                //$("#vuserName").css("color", "#f00");
                                $('#ueEmailPhone_img').css("display", "none");
                                $("#vuserName").text(r.Msg);
                            }
                            loginErrorCount++;
                            if (loginErrorCount > 3) {
                                $("#ueEmailValidataCode_div").css("display", "block");
                            }
                        }
                    })
                }
            })
            //敲击Enter键，触发登录按钮事件
            $("#userPwd").keypress(function (e) {
                if (e.keyCode == 13) {
                    $("#btnLogin").trigger('click');
                }

            })
            //账号失去焦点时获得提示
            $("#userName").blur(function () {
                CheckUser();
            });
            $("#userName").focus(function () {
                if ($(this).val() == "") {
                    //$("#vuserName").css("color", "#999");
                    $("#vuserName").text("请您填写注册的邮箱或手机号或用户名");
                }
            });
            //秘密框失去焦点时获得提示
            $("#userPwd").blur(function () {
                if ($(this).val() == "") {
                    //$("#vuserPwd").css("color", "red");
                    $("#vuserPwd").text("请输入您的登录密码");
                } else {
                    if ($("#userPwd").val().length < 6 || $("#userPwd").val().length > 30) {
                        $("#vuserPwd").text("请输入至少6个字符");
                    } else {
                        $("#vuserPwd").text("");
                    }
                }
            });
            $("#userPwd").focus(function () {
                if ($(this).val() == "") {
                    //$("#vuserPwd").css("color", "#999");
                    $("#vuserPwd").text("请输入您的登录密码");
                }
            });
            $("#code_a").click(function () {
                //$("#sp_SubmitMsg").css("color", "#999");
                //$("#sp_SubmitMsg").text("");
                $("#codeImg").attr("src", "/SystemLogin/GetValidateCode?times=" + new Date());
                $("#uecode").val("");
            });
            $("#uecode").blur(function () {
                //$("#sp_SubmitMsg").css("color", "#999");
                //$("#sp_SubmitMsg").text("");
                if ($(this).val() == "") {
                    $("#code_msg").text("请输入验证码");
                    //$("#vuserPwd").css("color", "#999");
                    $('#uecode_img').css("display", "none");
                }
                else {
                    $.post('/Login/CheckValidateCode', { ValidateCode: $(this).val() }, function (r) {
                        if (r.IsExist == false) {
                            $("#code_msg").text("验证输入错误");
                            //$("#vuserPwd").css("color", "red");
                            $('#uecode_img').css("display", "none");
                        }
                        else {
                            $("#code_msg").text("");
                            $('#uecode_img').css("display", "block");
                        }
                    });
                }
            });
        });
        function CheckUser() {
            //为空提示，还要有一个账号是否存在的服务器返回提示
            //$("#sp_SubmitMsg").css("color", "#999");
            //$("#sp_SubmitMsg").text("");
            if ($("#userName").val() == "") {
                //$("#vuserName").css("color", "red");
                $("#vuserName").text("请您填写注册的邮箱或手机号或用户名");
            }
            else {
                //包含@符号，邮箱登录
                if ($("#userName").val().indexOf("@") > -1) {
                    if (!$("#userName").val().match(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)) {
                        //$("#vuserName").css("color", "#f00");
                        $("#vuserName").text("您填写的邮箱格式有误，例如：mail@126.com");
                        $('#ueEmailPhone_img').css("display", "none");
                    }
                    else {
                        $("#vuserName").text("");

                        //判断输入的邮箱是否存在
                        $.post('/Login/NewConfirmEmail', { Email: $("#userName").val(), UserName: "", VersionName: $("#hidVersionName").val() }, function (r) {
                            if (r.IsExist != 1) {
                                //账号存在
                                $("#vuserName").text("");
                                $('#ueEmailPhone_img').css("display", "block");
                            } else {
                                //$("#vuserName").css("color", "#f00");
                                $('#ueEmailPhone_img').css("display", "none");
                                if (r.Msg != null) {
                                    if (r.Msg != "") {
                                        $("#vuserName").text(r.Msg);
                                    }
                                    else {
                                        $("#vuserName").text("邮箱用户不存在");
                                    }
                                }
                                else {
                                    $("#vuserName").text("邮箱用户不存在");
                                }
                            }
                        })
                    }
                }
                //电话登录
                //  else if ($("#userName").val().match(/^(((13[0-9]{1})|159|153|180|181|189|155|156|185|186|150|151|152|158|182|183|184|157|187|188|176|185|177|147|178|170|145)+\d{8})$/)) {
                else if ($("#userName").val().match(/^((1)+\d{10})$/)) {
                    $.post('/Login/NewConfirmMobilePhone', { MobilePhone: $("#userName").val(), UserName: "", VersionName: $("#hidVersionName").val() }, function (r) {
                        if (r.IsExist != 1) {
                            $("#vuserName").text("");
                            $('#ueEmailPhone_img').css("display", "block");
                        }
                        else {
                            //$("#vuserName").css("color", "#f00");
                            $('#ueEmailPhone_img').css("display", "none");
                            if (r.Msg != null) {
                                if (r.Msg != "") {
                                    $("#vuserName").text(r.Msg);
                                }
                                else {
                                    $("#vuserName").text("手机用户不存在");
                                }
                            }
                            else {
                                $("#vuserName").text("手机用户不存在");
                            }
                        }
                    })
                }
                //用户登录
                else {
                    //判断输入的用户是否存在
                    $.post("/Login/NewCheckUserName", { account: $("#userName").val(), VersionName: $("#hidVersionName").val() }, function (data) {
                        if (data.UserName != null || data.MobilePhone != null || data.Email != null) {
                            //账号存在
                            $("#vuserName").text("");
                            $("#ueEmailPhone_img").css("display", "block");
                        } else {
                            //$("#vuserName").css("color", "#f00");
                            $("#vuserName").text("账号不存在,请重新输入");
                            $('#ueEmailPhone_img').css("display", "none");
                        }
                    })
                }
            }
        }
    </script>
</head>
<body>

    <input type="hidden" value="舟大师" id="hidVersionName" />
    <h1 style="display:none" id="text"></h1>
    <!-- 主体部分 -->
    <div class='main'>
        <div class='mainBody'>
            <div class='mainBodyLeft'>
                <div class='mainBodyLeftLogo'>
                    <img src="/Content/newlogin/img1/logo.png" alt="">
                </div>
                <div class='mainBodyLeftText'>
                    <p style="width: 210px;">
                        热门主词 直达官网
                        实时报表 获客无忧
                    </p>
                </div>
            </div>
            <div class='mainBodyRight'>
                <div class='formSubmissionContent'>
                    <p class='formSubmissionTitle'>欢迎使用舟大师</p>
                    <div class='formSubmissionLogin'>
                        <div class='formSubmissionLoginInput' style="position:relative; width: 100%;">

                            <img src="/Content/newlogin/img1/lonoInput.png" style="position: absolute;top: 3px;left: 56px;" />
                            <input class='loginInput' placeholder='请输入手机号码/邮箱/用户名' maxlength="50" type="text" id="userName" name="UserName">
                            <span class='formSubmissionLoginImgOne' style="display: none;  position:absolute;right: 17px; top: 5px;" id="ueEmailPhone_img">
                                <img src="/Content/newlogin/img1/duigou.png" alt="">
                            </span>
                        </div>
                        <p class='errorTitle' id="vuserName"></p>
                    </div>
                    <div class='formSubmissionLogin'>
                        <div class='formSubmissionLoginInput' style="position:relative; width: 100%;">
                            <img src="/Content/newlogin/img1/mima.png" style="position: absolute;top: 3px;left: 56px;" />
                            <input class='loginInput' placeholder='登录密码' type="password" maxlength="50" id="userPwd">
                            <span class='formSubmissionLoginImgOne' style="display: none; position:absolute;right: 17px; top: 5px;" id="uePwd_img">
                                <img src="/Content/newlogin/img1/duigou.png" alt="">
                            </span>
                        </div>
                        <a href="/PasswordDecryptor/Index" target="_blank" style="text-align:right;box-sizing: border-box;padding-right: 50px;color: #337ab7;width: 100%;display: inline-block;">忘记密码</a>
                        <p class='errorTitle' id="vuserPwd"></p>
                    </div>
                    <div class='verificationCode' id="ueEmailValidataCode_div" style="display: none;margin-bottom: 20px;height: 40px;">
                        <div class='verificationCodeInput' style="float:left; position: relative;">
                            <img src="/Content/newlogin/img1/yzm.png" style="position: absolute;top: 3px;left: 6px;" />
                            <input type="text" placeholder='请输入验证码' maxlength="4" id="uecode">
                            <p class='verifyErrorTitle' id="code_msg"></p>
                        </div>
                        <div class='verificationCodeImg' style='float: right;margin-right: 50px;'>
                            <a id="code_a" href="javascript:void();" title="看不清? 点击刷新.">
                                <img id="codeImg" src="/RegistSumsz/GetValidateCode">
                            </a>
                        </div>
                    </div>
                    <div class='formSubmissionBtn'>
                        <input type="button" value='登录' id="btnLogin">
                        <p class='errorTitle' id="loginerror"></p>
                    </div>
                    <div class='formSubmissionLink'>
                        <a href="javascript:;">
                            <span class='color1'>还没有注册？</span>
                            <span class='color2'><a href="/RegistSumsz/Regist?spm=WFhPTyxUaGlzSXNOb3RFbmNycHRTdHJpbmc&source=default" target="_blank">免费注册</a></span>


                        </a>
                    </div>

                    <div class='QRcode' id="Static2Quick">
                        <div style="position: absolute;bottom:0;right:0;">
                            <p>点击扫码</p>
                            <img src="/Content/newlogin/img1/erweima.png" alt="">
                        </div>
                    </div>
                </div>
                <div style="position:absolute;top: 15px;right: 15px;">
                    <img src="/Content/newlogin/img1/xiaohuojian.png" />
                </div>
            </div>
            <div class='mainBodyRightTwo' style='display: none;'>
                <div class='formSubmissionContentTwo'>
                    <p class='formSubmissionTitleTwo'>欢迎使用舟大师</p>
                    <div class='QRcodeTwo' id="imgbox">
                        <img src="" alt="登录二维码" id="zdsQRcode">
                    </div>
                    <p class='saoyisao'>
                        <img src="/Content/newlogin/img1/saoyisao.png" alt="">
                        <span>打开手机APP扫一扫登录</span>
                    </p>
                    <div class='formSubmissionLink'>
                        <a href="javascript:;">
                            <span class='color1'>还没有注册？</span>
                            <span class='color2'><a href="/RegistSumsz/Regist?spm=WFhPTyxUaGlzSXNOb3RFbmNycHRTdHJpbmc&source=default" target="_blank">免费注册</a></span>
                        </a>
                    </div>
                    <div class='PCcode' id="Quick2Static">
                        <img src="/Content/newlogin/img1/diannao.png" alt="" style="position: absolute;bottom:0;right:0;">
                    </div>
                </div>
                <div style="position:absolute;top: 15px;right: 15px;">
                    <img src="/Content/newlogin/img1/xiaohuojian.png" />
                </div>
            </div>
        </div>
        <div class="foot" style="position:absolute;bottom:0;width: 100%;border-top:0;text-align:center;">舟大师版权有 All Right Reserved 2015 ? Sumszw.inc ICP备案证书号:粤ICP备14042642号</div>
    </div>
    <!-- 主体部分 -->


</body>
</html>
